<template>
  <div class="app-container">
     <el-form ref="form" :model="form" label-width="120px">
    <el-form-item label="院系号">
        <el-input v-model="form.workid" />
      </el-form-item>
      <el-form-item label="院系名">
        <el-input v-model="form.departmentCode" />
      </el-form-item>
     
        <el-form-item>
        <el-button type="primary" @click="onSubmit">确认修改</el-button>
        <el-button @click="onCancel">取消修改</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      form: {
            
            "departmentCode": "departmentcode1",
            "departmentName": "计算机学院",            
            
      }
    }
  },
  methods: {
    onSubmit() {
      this.$message('submit update!')
    },
    onCancel() {
      this.$message({
        message: 'cancel update!',
        type: 'warning'
      })
    }
  }
}
</script>

<style scoped>
.line{
  text-align: center;
}
</style>

